﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sp.otto;
using sp.platine;
using sp.portal;

namespace sp.host
{
    class Program
    {
        static void Main(string[] args)
        {
            var anamaria = new sp.anamaria.AnaMaria();
            var steven = new sp.ebc.steven.Steve();
            var martin = new sp.martin.Martin();
            var oliver = new sp.oliver.Oliver();
            var otto = new Otto();
            var rolf = new sp.rolf.Rolf();
            var stefan = new sp.stefan.Stefan();
            var tilman = new sp.tilmann.tilmann();

            var platine = new Platine(rolf, anamaria);

            var portal = new ConsolePortal();
            portal.OnText += otto.ProcessText;
            otto.OnText += tilman.ProcessText;
            tilman.OnText += stefan.ProcessText;
            stefan.OnText += steven.ProcessText;
            steven.OnText += platine.ProcessText;
            platine.OnText += martin.ProcessText;
            martin.OnText += oliver.ProcessText;
            oliver.OnText += portal.ProcessText;

            portal.Run();
        }
    }
}
